package com.xjrsoft.module.customerTwo.EMP.electricMeter.mapper;

import com.xjrsoft.module.customerTwo.EMP.electricMeter.dto.TElectricMeterDto;
import com.xjrsoft.module.customerTwo.EMP.electricMeter.entity.TElectricMeter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjrsoft.module.customerTwo.EMP.t_water_cost_records_day.vo.GetWaterTotalVO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 *  Mapper 接口
 *
 * @author dongxinhang
 * @since 2023-07-18
 */
public interface TElectricMeterMapper extends BaseMapper<TElectricMeter> {

    /**
     * 根据房间编号，时间范围获取该房间该段时间内的电量
     * @param dto
     * @return
     */
    BigDecimal getElectricCost(@Param("dto")TElectricMeterDto dto);

    /**
     * 根据身份证，时间范围获取该人时间范围内的用水量
     * @param dto
     * @return
     */
    GetWaterTotalVO getWaterTotal(@Param("dto")TElectricMeterDto dto);

    int insertIgnore(@Param("list")List<TElectricMeter> list);
}
